Skip to content

iPhone app: address first, password only if the server asks - #2

Merged
ehonis merged 1 commit into
mainfrom
sync/private-main
Oct 11, 2026
Merged

ehonis merged 1 commit into
mainfrom
sync/private-main

Conversation

@ehonis

@ehonis ehonis commented Oct 11, 2026

Copy link
Copy Markdown
Owner

Published from the private repository by oss-sync.

  • iPhone app: address first, password only if the server asks

1 file changed, 56 insertions(+), 43 deletions(-)

Published from the private repository by oss-sync.

- iPhone app: address first, password only if the server asks

 1 file changed, 56 insertions(+), 43 deletions(-)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T04:45:05.259824Z 09ce40f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ehonis
ehonis merged commit 5d44d3a into main Oct 11, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 09ce40fd8e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<Input
value={address}
onChangeText={setAddress}
onChangeText={(v) => { setAddress(v); setAskPassword(false); setError('') }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Clear hidden credentials when the address changes

After a failed sign-in, editing the server address hides the credential fields but leaves username and password in state. The next Connect attempt sees both values as nonempty and posts them to the newly entered host without showing or confirming them, potentially disclosing the owner's password to an unintended server. Clear the password when the address changes, or require a fresh password-stage confirmation for the new base URL.

Useful? React with 👍 / 👎.

Comment on lines +93 to +96
if ('needsPassword' in out) {
if (askPassword) { warn(); setError("Sign in with the owner's username and password.") }
else { setAskPassword(true); setTimeout(() => userRef.current?.focus(), 50) }
return

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the Access token between connection stages

On a Cloudflare Access-protected install, the first Connect obtains an Access token and reaches needsPassword, but this return path discards the token instead of retaining it. Submitting the newly displayed credentials initializes accessToken from the still-unsaved connection, so it opens Cloudflare Access a second time before Krakatoa login; every connection therefore requires two Access authentications. Keep the transient token through the password stage while still persisting it only after successful connection.

AGENTS.md reference: mobile/AGENTS.md:L51-L57

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant